<!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8">
    <title>@yield('title')</title>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
{{--<link rel="stylesheet" type="text/css" href="{{ asset('/static/css/bootstrap.css') }}">--}}
<!-- 最新版本的 Bootstrap 核心 CSS 文件 -->
    <link rel="stylesheet" href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
    @section('css')
        <link rel="stylesheet" type="text/css" href="{{ asset('/static/css/index.css') }}">
    @show

</head>

<body>
<nav class="navbar navbar-default navbar-fixed-top">
    <div class="container">
        <div class="navbar-header">
            <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" href="/">
                跟你说晚安
            </a>
        </div>

        <!-- Collect the nav links, forms, and other content for toggling -->
        <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
            <ul class="nav navbar-nav">
                <li class="active"><a href="/">首页</a></li>
                <li><a href="#">趣图</a></li>
                <li><a href="#">睡前小故事</a></li>
                <li><a href="#">小测试</a></li>
            </ul>
            <ul class="nav navbar-nav navbar-right">
                <li><a data-toggle="modal" href="#" data-target="#myModal">登录</a></li>
            </ul>
        </div><!-- /.navbar-collapse -->
    </div>
</nav>

<!-- 下拉框 -->
<div class="modal fade bs-example-modal-xs" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" >
    <div class="modal-dialog modal-sm" role="document">
        <div class="modal-content">
            <div class="modal-body">
                <div class="row">
                    <div class="col-md-12 col-xs-12" style="margin-top:20px;">社交帐号登录</div>
                    <div class="col-md-12 col-xs-12" style="margin-top:20px;">
                        <div class="col-md-2 col-xs-4" style="background:#4bc0f1;height:40px;text-align:center">
                            <img src="{{ asset('/static/img/qq-4.png') }}" class="login_img"/>
                        </div>
                        <div class="col-md-10 col-xs-8 login_button" style="background:#4bc0f1;padding-left:30px;">
                            使用 QQ 登录
                        </div>
                    </div>
                    <div class="col-md-12 col-xs-12" style="margin-top:20px;">
                        <div class="col-md-2 col-xs-4" style="background:#ea633b;height:40px;text-align:center">
                            <img src="{{ asset('/static/img/微博.png') }}" class="login_img"/>
                        </div>
                        <div class="col-md-10 col-xs-8 login_button" style="background:#ea633b;padding-left:30px;">
                            使用 微博 登录
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

@yield('content')
<div class="col-md-12 col-xs-12 footer">

</div>
</body>
<script src="{{ asset('/static/js/jquery.min.js') }}"></script>
<!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
<script src="https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
<script>
    $('#username').hover(function () {
        $('#username').css('color','#706257');
    },function () {
        $('#username').css('color','#9b8878');
    });
    $('#comment').hover(function () {
        $('#comment').css('color','#3a1703');
    },function () {
        $('#comment').css('color','#999999');
    });
</script>
</html>
